package com.c8a.payment.service.impl;
import com.c8a.commons.entity.Payment;
import com.c8a.payment.dao.PaymentDao;
import com.c8a.payment.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: c8a
 * @Date: 2022-04-04 18:01
 * @Email: 1912327276@qq.com
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
